package util;

import javax.swing.JPanel;
import javax.swing.SwingUtilities;

import Ventanas.admin.VentanaA;
import Ventanas.usuario.Ventana;

public class GetFrame {

	public static Ventana getVentana(JPanel panel) {

		return (Ventana) SwingUtilities.getWindowAncestor(panel);

	}

	public static VentanaA getVentanaA(JPanel panel) {

		return (VentanaA) SwingUtilities.getWindowAncestor(panel);

	}
}
